#ifndef _TEXT_
#define _TEXT_

#include <SDL_ttf.h>
#include <string>

using namespace std;

class Container;

class Text {
    private:
        Container* parent;
        
        string name;
        int x;
        int y;
        //int w;
        int h;
        
        string label;
        
        SDL_Surface* SDL_render;
        
    public:
        TTF_Font* police;
        SDL_Color couleur;
        
        Text(Container* parent, string name, string label, int x, int y, int h);
        ~Text();
        
        SDL_Surface* updateRender();
        
        void setLabel(string value);
        
        string getName();
        string getLabel();
        int getx();
        int gety();
};

#endif